Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TypeScript definitions #15

Closed
wants to merge 1 commit into from
Closed

Add TypeScript definitions #15

wants to merge 1 commit into from

Conversation

DanRYoung
Copy link

@DanRYoung DanRYoung commented Feb 27, 2021

This PR adds type definitions and documentation for all supported MCP3XXX devices. It's helpful for folks who use TypeScript for their projects or an editor which supports annotations.

Here's a VSCode example of types coming in handy: https://i.imgur.com/wX4t1uR.mp4

Closes #10.

Also, shout out to @fivdi and @rxseger for this excellent library! It's reduced the lift for me getting my temperature sensor working so much. Y'all are the best. Cheers!

@DanRYoung DanRYoung closed this Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typescript interface?
1 participant